package com.ahoi.service;

import com.ahoi.common.exception.BizException;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auther: ahoi
 * @Date: 2018/4/28 17:19
 * @Description:
 */
@Service
public class LoginService {

    public void login(String username) {
        if (StringUtils.isEmpty(username)) {
            throw new BizException("用户名不存在");
        }
        List list = new ArrayList();
        list.get(0).toString();
    }

}
